package com.nanjia.boot.warehouse.converter;

import com.nanjia.boot.warehouse.model.entity.Warehouse;
import com.nanjia.boot.warehouse.model.form.WarehouseForm;
import com.nanjia.boot.warehouse.model.vo.WarehouseVO;
import org.mapstruct.Mapper;

/**
 * 仓库信息对象转换器
 *
 * @author 周洋
 * @since 2025-07-04 15:08
 */
@Mapper(componentModel = "spring")
public interface WarehouseConverter{

    WarehouseForm toForm(Warehouse entity);

    Warehouse toEntity(WarehouseForm formData);
    WarehouseVO toVo(Warehouse entity);
}